{"componentChunkName":"component---src-templates-post-tsx","path":"/java-inheritance.md/","result":{"data":{"markdownRemark":{"html":"<h3 id=\"상속inheritance\" style=\"position:relative;\"><a href=\"#%EC%83%81%EC%86%8Dinheritance\" aria-label=\"상속inheritance permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>상속(Inheritance)</h3>\n<span class=\"gatsby-resp-image-wrapper\" style=\"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 559px; \">\n      <a class=\"gatsby-resp-image-link\" href=\"/static/59d7dd9ff701d5acf31479f5db992c6e/a65ce/inheritance1.png\" style=\"display: block\" target=\"_blank\" rel=\"noopener\">\n    <span class=\"gatsby-resp-image-background-image\" style=\"padding-bottom: 46.621621621621614%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAJCAIAAAC9o5sfAAAACXBIWXMAAAsSAAALEgHS3X78AAAA3klEQVQoz5WRW4+DIBSE+f9/z3ezqUi4WBAsFwW009B2uw9u0hMlMMw53xjJvu+Ldlpeo/fruuacj1fhWEpp+5qLFZoNjNHRWttsBK+VmvYX9BtjvPdQnHPzPPd9zxiDiGOz8Z9RjUII2WwE5FIf47dtezNrrWDiChtAaqkQw+IX47CCjFBPMkxYlVIhhOOkMKXZPot8XiMqpg6Xoes6znmD/+nZH89b+W1uEkbEGFNMIQZ8rdEGylkccvxbMSXE+aIZAW7ayZFPVKiBU0rzlr8gryHhlxipJzGBfJb8DuuhDnmlJ+1zAAAAAElFTkSuQmCC&apos;); background-size: cover; display: block;\"></span>\n  <img class=\"gatsby-resp-image-image\" alt=\"inheritance\" title=\"inheritance\" src=\"/static/59d7dd9ff701d5acf31479f5db992c6e/a65ce/inheritance1.png\" srcset=\"/static/59d7dd9ff701d5acf31479f5db992c6e/12f09/inheritance1.png 148w,\n/static/59d7dd9ff701d5acf31479f5db992c6e/e4a3f/inheritance1.png 295w,\n/static/59d7dd9ff701d5acf31479f5db992c6e/a65ce/inheritance1.png 559w\" sizes=\"(max-width: 559px) 100vw, 559px\" style=\"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;\" loading=\"lazy\">\n  </a>\n    </span>\n<ul>\n<li>자식 클래스는 어머니클래스를 extends 함으로써 메소드를 상속 받을 수 있다</li>\n</ul>\n<span class=\"gatsby-resp-image-wrapper\" style=\"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 559px; \">\n      <a class=\"gatsby-resp-image-link\" href=\"/static/659f40a5d8a8ed0e29b55e1f39df81c8/a65ce/inheritance2.png\" style=\"display: block\" target=\"_blank\" rel=\"noopener\">\n    <span class=\"gatsby-resp-image-background-image\" style=\"padding-bottom: 50.67567567567568%; position: relative; bottom: 0; left: 0; background-image: url(&apos;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAKCAIAAAA7N+mxAAAACXBIWXMAAAsSAAALEgHS3X78AAABDElEQVQoz41R226FIBD0/7+vTydRj3hAUWBBBFS8FLSxNvrQCSEQdnZm2GS9Ydu20bjPV4Ze+Tt/E0w4YxLA9P08z9fKZHuC975OcVtUBGNUoIbUjDbO2qP1iWfyUWStNcac1zueydH5MLZN62d/jXMjr9s9cxDknIeEv06uBeuPlwfl4BaE2P6BZLRDxxUo2UkFpNXQoRJpra9Re9FJARB+nDJBWinCCYKvZFkWqBhJUVlUGFWsaYOs2t92w3EbelunnzIri6yipOaMC87DZ0bbgjD6KjEidd1ooTopp2k600ayG2iGaR4GVykOGpSzLtoOCn7yBvQxxnXZ199sodfkRtfbMP91iTgSfQNoekXCgVl8rwAAAABJRU5ErkJggg==&apos;); background-size: cover; display: block;\"></span>\n  <img class=\"gatsby-resp-image-image\" alt=\"inheritance\" title=\"inheritance\" src=\"/static/659f40a5d8a8ed0e29b55e1f39df81c8/a65ce/inheritance2.png\" srcset=\"/static/659f40a5d8a8ed0e29b55e1f39df81c8/12f09/inheritance2.png 148w,\n/static/659f40a5d8a8ed0e29b55e1f39df81c8/e4a3f/inheritance2.png 295w,\n/static/659f40a5d8a8ed0e29b55e1f39df81c8/a65ce/inheritance2.png 559w\" sizes=\"(max-width: 559px) 100vw, 559px\" style=\"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;\" loading=\"lazy\">\n  </a>\n    </span>\n<ul>\n<li>interface :　메소드만 선언</li>\n<li>implements : 메소드를 정의해야만 함</li>\n</ul>\n<hr>\n<h4 id=\"reference\" style=\"position:relative;\"><a href=\"#reference\" aria-label=\"reference permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Reference</h4>\n<ul>\n<li><a href=\"https://opentutorials.org/course/4408\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">https://opentutorials.org/course/4408</a></li>\n</ul>","excerpt":"상속(Inheritance) 자식 클래스는 어머니클래스를 extends 함으로써 메소드를 상속 받을 수 있다 interface :　메소드만 선언 implements : 메소드를 정의해야만 함 Reference https://opentutorials.…","tableOfContents":"<ul>\n<li><a href=\"/java-inheritance.md/#%EC%83%81%EC%86%8Dinheritance\">상속(Inheritance)</a></li>\n</ul>","fields":{"slug":"/java-inheritance.md/"},"frontmatter":{"title":"Java의 상속(Inheritance)","date":"Feb 05, 2020","tags":["Java"],"keywords":["java","inheritance"],"update":"Jan 01, 0001"}}},"pageContext":{"slug":"/java-inheritance.md/","series":[],"lastmod":"2020-02-05"}},"staticQueryHashes":["2027115977","694178885"]}